package query

import "ssdevice/common/dto"

type SysTaskDeviceQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Id              string        `form:"id" json:"id" search:"type:exact;column:id;table:sys_task_device"`
	DevSn           string        `form:"devSn"  search:"type:contains;column:dev_sn;table:sys_task_device"`
	TaskId          string        `form:"taskId"  search:"type:exact;column:task_id;table:sys_task_device"`
	Sid             int64         `form:"sid"  search:"type:exact;column:sid;table:sys_task_device"`
	Status          string        `form:"status"  search:"type:exact;column:status;table:sys_task_device"`
	StatusIn        []string      `search:"type:in;column:status;table:sys_task_device"`
	PlanExecTimeLte dto.LocalTime `search:"type:lt;column:plan_exec_time;table:sys_task_device"`
	Progress        string        `form:"progress"  search:"type:contains;column:progress;table:sys_task_device"`
}

func (m *SysTaskDeviceQuery) GetNeedSearch() interface{} {
	return *m
}
